#!/usr/bin/python
# -*- coding: utf-8 -*-

#
# Created: Thu Oct  2 14:54:24 2008
#      by: PyQt4 UI code generator 4.3.3
#


import sys
import os
from Page import *

class Main:

          def __init__(self):

                   self.config={}
                   self.iperf={}
                   self.res=sys.argv[1]
                   self.param={}
            
          def function(self,param):
                 
           # print self.res
             
            while self.res!=666:

              if int(self.res) == 1:
                        
	         obj1= Page1("un")
		 obj1.affich(param)
      

              if int(self.res) == 2: 
               
               
                 obj2 = Page2("un")
                 obj2.affich(param)

              if int(self.res) == 3: 
                
                 
                 obj3 = Page3("un")
                 obj3.affich(param)
              if int(self.res) == 4: 
                
                 
                 obj4 = Page4("un")
                 obj4.affich(param)
              if int(self.res) == 5: 
                
                 
                 obj5 = Page5("un")
                 obj5.affich(param)
              if int(self.res) == 6: 
                
                 
                 obj6 = Page6("un")
                 obj6.affich(param)
              if int(self.res) == 7: 
                
                 
                 obj7 = Page7("un")
                 obj7.affich(param)
              if int(self.res) == 8: 
                
                 
                 obj8 = Page8("un")
                 obj8.affich(param)
              if int(self.res) == 9: 
                
                 
                 obj9 = Page9("un")
                 obj9.affich(param)

              if int(self.res) == 10:
                  
                 obj10 = Page10("un")
                 obj10.affich(param)
          def  func2(self,param):
                system="./Main.py 2 "
                os.system(system)

          def  func3(self,param):
                system="./Main.py 3"
                os.system(system)
          def  func4(self,param):
                system="./Main.py 4"
                os.system(system)
          def  func5(self,param):
                print param
                system="./Main.py 5"
                os.system(system)
          def  func6(self,param):
                system="./Main.py 6"
                os.system(system)
          def  func7(self,param):
                system="./Main.py 7"
                os.system(system)
          def  func8(self,param):
                system="./Main.py 8"
                os.system(system)
          def  func9(self,param):
                system="./Main.py 9"
                os.system(system)
          def  func10(self,param):
                system="./Main.py 10"
                os.system(system)





if __name__=="__main__":
	mehdi=Main()
	mehdi.function("mehdi")
              
